#ifndef FREEWAY_H_INCLUDED
#define FREEWAY_H_INCLUDED
#include "FreeWayMgr.h"
#include "FreeWayLog.h"
#include <stdio.h>
#include "../public/public0.h"
FreeWayMgr * mgrPtr;
FreeWayLog * logPtr;
extern "C"{

// A function to initialize this shared lib
bool FreeWayInit(void * brainPtr, int type);
// A function to process data (transfer data)
bool FreeWaySendData(const char * buf, int length);
// A function to process command
bool FreeWaySendCmd(const char * buf , int length);
// A function to reload configuration file
bool FreeWayReload();
// A function to quit
bool FreeWayExit();

//register client to server and freeway access server!
bool FreeWayClientRegister(const char * serverip, int port);

bool FreeWayStart();
}


#endif // FREEWAY_H_INCLUDED
